package designpatterns.factory;


/**
 * @author LiDong
 * @version 1.0.0
 * @createTime 2022/1/23 13:23
 */
public class CarsFactory {

    /**
     * 根据车类型获取车辆
     *
     * @param carType
     * @return
     */
    public static Car getCar(CarType carType) {
        return carType.getConstructor().get();
    }

}
